package org.jeecg.modules.inspect.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.inspect.entity.InsTask;
import org.jeecg.modules.inspect.vo.DepartReportVo;
import org.jeecg.modules.inspect.vo.MonthReportVo;
import org.jeecg.modules.inspect.vo.RoleReportVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 任务
 * @Author: jeecg-boot
 * @Date:   2023-11-24
 * @Version: V1.0
 */
public interface IInsTaskService extends IService<InsTask> {

	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public List<InsTask> todoList(String departIds,String roleIds);
	public List<InsTask> todoListByUserName(String userName);

	public void taskTimeout();

	public void taskRemind();

	public IPage<RoleReportVo> roleReport(Page<RoleReportVo> page, RoleReportVo roleReportVo);

	public IPage<DepartReportVo> departReport(Page<DepartReportVo> page, DepartReportVo departReportVo);

	public IPage<MonthReportVo> monthReport(Page<MonthReportVo> page, MonthReportVo monthReportVo);

}
